import ReactDOM from 'react-dom'
// 渲染 组件 到 index.html上
const root = ReactDOM.createRoot(document.getElementById('root'));

const app = (title, subTitle) => {
  return (
    <div>
      <h2>
        {title}
      </h2>
      <h3>{subTitle}</h3>
      {/* 这是注释 */}
      <label htmlFor="">你好</label>
      <div className="box"></div>
    </div>
  )
}
root.render(
  app('这是主标题', '这是副标题')
)